package com.healthcloud.dao.PatientRecord;


import com.healthcloud.dao.BaseDao;
import com.healthcloud.entity.PatientRecord.MedicalCheckEntity;
import com.healthcloud.utils.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 检查项目表
 * 
 * @author yucl
 * @email yucailong1111@126.com
 * @date 2018-08-29 16:49:42
 */
public interface MedicalCheckDao extends BaseDao<MedicalCheckEntity> {

    List<MedicalCheckEntity> queryByIdCard(@Param("entity") MedicalCheckEntity entity, @Param("pageParam")PageParam pageParam);

    int countByIdCard(@Param("entity")MedicalCheckEntity entity);

    /**
     * 修改病人身份证号
     * @param oldIdCard 修改前身份证号
     * @param newIdCard 修改后身份证号
     */
    void updateIdCard(@Param("newIdCard") String newIdCard, @Param("oldIdCard") String oldIdCard);
}
